
#ifndef __FILESYSTEMACCESS_H
#define __FILESYSTEMACCESS_H


#include "../core/CString.h"
#include "../core/Tree.h"
#include "../core/Converter.h"

#include "dirent.h"


namespace clovis {

       namespace io {

            /*!
             * \brief The clovis' tree class
             */

            class FileSystemAccess{

                public:

                    FileSystemAccess();

                    /*!
                     * Scan
                     * \return tree's arborescence starting at path
                     * \param path repertory's path
                     */
                    core::Tree * Scan ( core::CString path );

                    /*!
                     * isDirectory
                     *  \return true if path is a directory else false
                     */
                    bool isDirectory( core::CString path );

                private:

                    void treeBrowse(core::Node * node);


            };

       };

};

#endif
